// cover some element-ui styles
:root {
  --el-color-white: #ffffff;
  --el-theme-admin-text-color-3: #FAFAFA;
  --admin-menu-gradient-bg: linear-gradient(90deg, rgba(112, 195, 200, 0) 0%, #70C3C8 51.5%, rgba(112, 195, 200, 0) 100%); /* 菜单选中色【三兄弟不同】 */
  --admin-theme-color: #0B8A93; /* 主题色【三兄弟不同】 */
  --admin-menu-collapse-btn-bg: #3CA4AB; /* 菜单底部收缩按钮背景色【三兄弟不同】 */
  --admin-table-selected-bg: #F1F9FA; /* 表格、vue-treeslect等选中背景色【三兄弟不同】 */
  --brother-common-table-border: 1px solid #EBEEF5; /* 表格底色线【三兄弟一样】 */
  --brother-common-table-hover-bg: #F2F2F2; /* 表格悬浮色【三兄弟一样】 */  
  --brother-common-table-nested-title-color: #909399; /* 表格嵌套表格 表格标题字体【三兄弟一样】 */
  --brother-common-table-empty-text-color: #606266; /* 表格里暂无数据的字体、表单左边的文字颜色【三兄弟一样】 */
  --brother-common-tips-text-color :303133; /* 表格上面提示的文字【三兄弟一样】 */
  --brother-common-tips-bg: #F8F8F8; /* 表格右上角提示文字背景色【三兄弟一样】 */
  --brother-common-gray-bg: #f8f8f9; /* 右侧灰色大背景【三兄弟一样】 */
  --brother-common-pagination-bg: #f5f7fa; /* 分页背景色【三兄弟一样】 */
  --brother-common-pagination-text-color: #666666; /* 分页文字的颜色【三兄弟一样】 */
}

html {
  --ui-theme-color: #0B8A93;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

/* 表格
-------------------------- */
.el-table {
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      background-color: var(--admin-table-selected-bg) !important;
      color: var(--ui-theme-color);
      height: 40px !important;
      font-size: 13px;
    }
  }
  .el-table__body-wrapper {
    .el-button [class*='el-icon-'] + span {
      margin-left: 1px;
    }
  }
  .el-table__body tr.current-row>td.el-table__cell{
    background-color: var(--admin-table-selected-bg) !important;
  }
}

.el-table--enable-row-hover .el-table__body tr:hover > td {
  background-color: var(--brother-common-table-hover-bg) !important; /* 表格悬浮色 */
}

/* 嵌套表格样式 */
.el-table[data-nested="true"] {
  .el-table__header-wrapper,
  .el-table__body tr.current-row>td.el-table__cell
  .el-table__fixed-header-wrapper {
    th {
      color:var(--brother-common-table-nested-title-color) !important;
      background-color: transparent !important; /* 移除背景色 */
    }
  }
}


/* 分页
-------------------------- */
.el-pagination {
  --el-pagination-font-size: 14px;
  --el-pagination-text-color: var(--brother-common-tips-text-color);
  --el-pagination-border-radius: 2px;
  --el-pagination-button-width: 32px;
  --el-pagination-button-height: 32px;
  white-space: nowrap;
  color: var(--el-pagination-text-color);
  font-size: var(--el-pagination-font-size);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: right;
  padding: 27px 5px 0px 0px !important;
}

.el-pagination .btn-next,
.el-pagination .btn-prev{
  background-color: var(--brother-common-pagination-bg) !important;
}
.el-pagination .btn-next,
.el-pagination .btn-prev,
.el-pagination .el-pager li {
  margin: 0 4px;
  background-color: var(--brother-common-pagination-bg);
  color: var(--brother-common-pagination-text-color);
  font-weight:100;
  min-width: var(--el-pagination-button-width);
  height: var(--el-pagination-button-height);
  line-height: var(--el-pagination-button-height);
  border-radius: var(--el-pagination-border-radius);
}
.el-pagination .btn-next.active,
.el-pagination .btn-prev.active,
.el-pagination .el-pager li.active {
  background-color: var(--ui-theme-color);
  color: var(--el-color-white);
}


/* 按钮
-------------------------- */
.el-button {
  height: 32px;
  font-size: 14px !important;
}
.el-button--danger.is-plain:focus, .el-button--danger.is-plain:hover{
  color: var(--el-color-white) !important;
}
/* 弹框
-------------------------- */
.el-dialog {
  border-radius:6px !important;
}

.el-dialog__header {
  display: flex;
  .el-dialog__headerbtn .el-dialog__close {
    color: #000000;
  }

  .el-dialog__title {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 22px;
    border-left: 4px solid var(--ui-theme-color);
    padding-left: 10px;
  }
}
.el-dialog__body {
  padding: 30px 19px !important;
}


/* 滚动条
-------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
.el-table__body-wrapper::-webkit-scrollbar {
  width: 6px;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
}

/* 树
-------------------------- */
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  background-color: var(--admin-table-selected-bg) !important;
  color: var(--ui-theme-color);
}

/* 自定义信息框
-------------------------- */
.el-message-box__title {
  font-size: 16px !important;
  font-weight: 400;
  color: #000;
  line-height: 22px;
  border-left: 4px solid var(--ui-theme-color);
  padding-left: 10px !important;
}